﻿using System.ComponentModel.DataAnnotations;

namespace FYSJcrm.Core.Web.Areas.PermManage.Models.AdminUserModels
{
    public class AdminUserAddModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        public string UserName { get; set; }

        /// <summary>
        /// 初始密码
        /// </summary>
        [Required]
        [MinLength(6)]
        public string Password { get; set; }

        /// <summary>
        /// 确认密码
        /// </summary>
        [Required]
        [Compare(nameof(Password))]
        public string Password2 { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Required]
        public int IsLock { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public string TelPhone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        [Required]
        public int RoleId { get; set; }
    }
}